package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizAgentCity;
import com.baseweb.webadmin.core.model.pojo.ByUserBizSchedule;
import com.baseweb.webadmin.core.model.pojo.User;

public class ByUserBizScheduleBvo extends ByUserBizSchedule{

    private User user;

    public static ByUserBizScheduleBvo copyFrom(ByUserBizSchedule byUserBizSchedule, User user) {
        ByUserBizScheduleBvo bvo = new ByUserBizScheduleBvo();
        bvo.setId(byUserBizSchedule.getId());
        bvo.setUserId(byUserBizSchedule.getUserId());
        bvo.setScheduleDate(byUserBizSchedule.getScheduleDate());
        bvo.setScheduleType(byUserBizSchedule.getScheduleType());
        bvo.setCreateTime(byUserBizSchedule.getCreateTime());
        bvo.setUpdateTime(byUserBizSchedule.getUpdateTime());
        bvo.setStatus(byUserBizSchedule.getStatus());
        bvo.setUser(user);
        return bvo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
